<?php

    $ios_url= 'https://itunes.apple.com/us/app/yun-guo-shang-cheng/id1163068455?mt=8';
    $android_url = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.ybs.yunguo';
    $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
    if(strpos($agent, 'iphone') || strpos($agent, 'ipad'))        {
        header("Location:" . $ios_url);
    }else/* (strpos($agent, 'android'))*/{
        header("Location:" . $android_url);
    }
	
	//else{
    //    die('您的手机系统暂不支持');
    //}




